<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>体育馆管理系统</title>

<script  src="bootstrap/js/jquery-3.2.0.js"></script>
<link href="${pageContext.request.contextPath }/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<script src="bootstrap/js/bootstrap.js"></script>
<link href="bootstrap/css/signin.css" rel="stylesheet">
<style>
.container .panel-group .panel-body a{
	margin:20px 10px;
}
</style
</head>
<body>

	<%@include file="navigationBar.jsp"%>
<div class='container'>
	<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
	  <s:if test="'管理用户' in #session.rolePermission_name_list">
		   <div class="panel panel-default">
	    <div class="panel-heading" role="tab" id="headingOne">
	      <h4 class="panel-title">
	        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
	         		 用户管理
	        </a>
	      </h4>
	    </div>
	    <div id="collapseOne" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="headingOne">
	      <div class="panel-body">
			<a href="um-userManage">用户管理</a>
		    <a href="rm-roleManage">角色管理</a>	  
        </div>
	    </div>
	  </div>
	  </s:if>
	 
	  <div class="panel panel-default">
	    <div class="panel-heading" role="tab" id="headingTwo">
	      <h4 class="panel-title">
	        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
	          	器材管理
	        </a>
	      </h4>
	    </div>
	    <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
	      <div class="panel-body">
	      <s:if test="'管理器材' in #session.rolePermission_name_list">
			<a href="em-equipmentManage">器材管理</a>
			<a href="er-equipmentRent">器材租借</a>
			<a href="er-returnEp">器材归还</a>
		</s:if>
		<s:else>
			<a href="er-equipmentRent">器材租借</a>
			<a href="er-returnEp">器材归还</a>
		</s:else>
	      </div>
	    </div>
	  </div>
	  <div class="panel panel-default">
	    <div class="panel-heading" role="tab" id="headingThree">
	      <h4 class="panel-title">
	        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
	         		 场地管理
	        </a>
	      </h4>
	    </div>
	    <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
	      <div class="panel-body">
	        <s:if test="'管理场地' in #session.rolePermission_name_list">
				<a href="add_field.action">场地添加</a>
				<a href="field_modifyRental.action">租金修改</a>
				<a href="field_show.action">显示场地</a>
				
			</s:if>
			<s:else>
				<a href="fieldAll_record.action">显示场地</a>		
				<a href="fieldRent_order.action">显示租用记录</a>		
			</s:else>
	      </div>
	    </div>
	  </div>
	  
	   <div class="panel panel-default">
	    <div class="panel-heading" role="tab" id="headingFlour">
	      <h4 class="panel-title">
	        <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseFlour" aria-expanded="false" aria-controls="collapseFlour">
	         		 赛事管理
	        </a>
	      </h4>
	    </div>
	    <div id="collapseFlour" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingFlour">
	      <div class="panel-body">
	        <s:if test="'管理赛事' in #session.rolePermission_name_list">
			<a href="matchApply_findAll.action?currPage=1">查看赛事申请表</a>
			<a href="matchApply_apply.action">新建赛事申请表</a>
			<a href="matchApply_examine.action?currPage=1" >审核赛事申请表</a>
			<a href="matchApply_delete.action?currPage=1">删除赛事申请表</a>
			<a href="matchInfo_findAll.action?currPage=1">查看赛事信息表</a>
			<a href="matchInfo_listUpdate.action?currPage=1">更新赛事信息表</a>
			<a href="matchInfo_delete.action?currPage=1">删除赛事信息表</a>
		</s:if>
		<s:else>
			<a href="matchApply_findAll.action?currPage=1">查看赛事申请表</a>
			<a href="matchInfo_findAll.action?currPage=1">查看赛事信息表</a>	
		</s:else>
	      </div>
	    </div>
	  </div>
	  
	  
	</div>
</div>
<%-- <div class='container'>
	<s:if test="'管理用户' in #session.rolePermission_name_list">
		<h3>用户管理</h3>
		<a href="um-userManage">用户管理</a>
		<a href="rm-roleManage">角色管理</a>
	</s:if>
	
	<s:if test="'管理器材' in #session.rolePermission_name_list">
		<h3>器材管理</h3>
		<a href="em-equipmentManage">器材管理</a>
		<a href="er-equipmentRent">器材租借</a>
		<a href="er-returnEp">器材归还</a>
	</s:if>
	<s:else>
		<h3>器材</h3>
		<a href="er-equipmentRent">器材租借</a>
	</s:else>
	
	<s:if test="'管理场地' in #session.rolePermission_name_list">
		<h3>场地管理</h3>
		<a href="add_field.action">场地添加</a>
		<a href="field_modifyRental.action">租金修改</a>
		<a href="field_show.action">显示场地</a>
		
	</s:if>
	<s:else>
		<h3>场地</h3>
		<a href="fieldAll_record.action">显示场地</a>		
		<a href="fieldRent_order.action">显示租用记录</a>		
	</s:else>
			
			
	<s:if test="'管理赛事' in #session.rolePermission_name_list">
		<h3>赛事管理</h3>
		<a href="matchApply_findAll.action?currPage=1">查看赛事申请表</a>
		<a href="matchApply_apply.action">新建赛事申请表</a>
		<a href="matchApply_examine.action?currPage=1" >审核赛事申请表</a>
		<a href="matchApply_delete.action?currPage=1">删除赛事申请表</a>
		<a href="matchInfo_findAll.action?currPage=1">查看赛事信息表</a>
		<a href="matchInfo_listUpdate.action?currPage=1">更新赛事信息表</a>
		<a href="matchInfo_delete.action?currPage=1">删除赛事信息表</a>
	</s:if>
	<s:else>
		<h3>赛事</h3>
		<a href="matchApply_findAll.action?currPage=1">查看赛事申请表</a>
		<a href="matchInfo_findAll.action?currPage=1">查看赛事信息表</a>	
	</s:else>
</div> --%>
</body>
</html>